<div class="wrapper-md ng-scope">
  <div class="row">
    <div class="panel panel-default">

      <tabset class="tab-container" >
        
        <tab heading="事件列表" active="status.event" ng-click="cancel()">
          <div class="row wrapper">
            <div class="col-sm-5 m-b-xs">
              <div class="input-group" >
                <div class="input-group-btn" >
                  <span class="btn btn-default">事件标识</span>
                </div>
                <input type="text" class="form-control ng-pristine ng-valid ng-touched" ng-model="eventid">
              </div>
            </div>
          </div>
          <div class="panel-body"> 
            <table class="table table-striped table-bordered ng-isolate-scope dataTable no-footer" 
              style="display: table; width: 100%;table-layout:fixed;">
              <thead>
                <tr>
                  <th style="width: 7%;text-align:center;">事件名称</th> 
                  <th style="width: 12%;text-align:center;">事件标识</th>
                  <th style="width: 12%;text-align:center;">任务</th>
                  <th style="width: 4%;text-align:center;">执行次数</th>
                  <th style="width: 4%;text-align:center;">操作</th>
                </tr>
              </thead>
              <tbody>
                <tr ng-repeat="info in event_list | filter : {'id': eventid}">
                  <td>{{info.name}}</td> 
                  <td>{{info.id}}</td>
                  <td ng-bind-html="info.task"></td>
                  <td class="text-center">{{info.execSum}}</td>
                  <td class="text-center">
                    <button type="button" class="btn btn-info btn-xs" ng-click="seeInfo(info)">详情</button>
                  </td>
                </tr>
              </tbody>
            </table>
           </div> 
        </tab>

        <tab heading="任务列表" active="status.task">
          <div class="row wrapper">
            <div class="col-sm-5 m-b-xs">
              <div class="input-group" >
                <div class="input-group-btn" >
                  <span class="btn btn-default">事件标识</span>
                </div>
                <input type="text" class="form-control ng-pristine ng-valid ng-touched" ng-model="status.taskid">
              </div>
            </div>
            <div class="col-sm-6">
              <button class="btn m-b-xs w-xs btn-success" ng-click="search()">搜索</button>
              <button class="btn m-b-xs w-xs btn-primary" style="margin-left: 5px;" ng-click="cancel()">后退</button>
            </div>
          </div>
          <div class="panel-body">
            <table class="table table-striped table-bordered ng-isolate-scope dataTable no-footer" 
              style="display: table; width: 100%;table-layout:fixed;">
              <thead>
                <tr>
                  <th style="width: 18%;text-align:center;">任务标识</th>
                  <th style="width: 15%;text-align:center;">任务参数</th>
                  <th style="width: 8%;text-align:center;">时间</th>
                </tr>
              </thead>
              <tbody>
                <tr ng-repeat="info in task_list | orderBy:'createTime':'desc'">
                  <td>
                    <div ng-repeat="aa in info.task">
                      <a ng-click="taskinfo(aa)"><i style="color:#2fa4e7">{{aa.id}}</i></a>
                      ->{{aa.result==0?aa.resultdata:aa.result}}
                    </div>
                  </td>
                  <td><div style="word-break:break-all;">{{info.eventParamStr}}</div></td>
                  <td class="text-center">{{info.date}}</td>
                </tr>
              </tbody>
            </table>
          </div>
        </tab>

      </tabset>

    </div>
  </div>
</div>
